<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
    <meta name="format-detection" content="telephone=no">
    <title></title>
    <script type="text/javascript" src="../applyandactivate/js/stats.js" charset="UTF-8"></script>
    <link rel="stylesheet" href="../applyandactivate/css/frozen.css">
    <link rel="stylesheet" href="../applyandactivate/css/style.css">
    <script src="../applyandactivate/lib/zepto.min.js"></script>
    <script src="../applyandactivate/js/frozen.js"></script>
    
    <script src="../applyandactivate/js/qrcode/jquery-2.1.1.js"></script>
    <script src="../applyandactivate/js/qrcode/jquery.qrcode.min.js"></script>
</head>

<body ontouchstart>
    <header class="ui-header ui-header-stable ui-border-b xc_header">
        <h1 class="ui-txt-feeds xc_header_h1">结果详情</h1>
    </header>
    <section class="ui-container">
        <div class="banner">
            <img src="../applyandactivate/img/banner01.png">
        </div>
        <div class="xc_apply_info">
            <div class="xc_OK ui-icon ui-icon-success" id="lt_act">
            </div>
            <div class="lt_ts" style="display: inline-block;">
                <p class="">谢谢！</p>
                <!--<p class="xc_success_text xc_order_num">订单编号：<em></em></p>-->
            </div>
        </div>
        <div class="content1 xc_apply_info">
            <h3>您已提交过申请，不能重复提交！如有疑问，请致电：</h3>
        </div>
        <div class="xc_apply_info content2">
            <div class="qrcode">
                <span id="qrcode"></span>
            </div>
            <br>
            <h3>未成年人申请护照请扫描二维码</h3>
        </div>
    </section>
</body>
<script type="text/javascript">
$(function() {
    $(".content1").hide();
    $(".content2").hide();

    function getQueryString(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
        var r = window.location.search.substr(1).match(reg);
        if (r != null) {
            return unescape(r[2]);
        }
        return null;
    }
    var birth = getQueryString("birth");
//     birth="17";
    if (birth == "17") {
        $(".content2").show();
        //二维码
        var _qrcode = "http://jd.cvssp.cn/static/web_for_h5/passport/juvenileapplyandactivate/index.html?channelCode=yeBjQ&businessCode=G00001&orderCode=JT35DUdB4Y&baseAddress=17&realName=";
        $('#qrcode').qrcode({
            width: 100,
            height: 100,
            typeNumber: -1, //计算模式
            correctLevel: 1,//纠错等级
            text: _qrcode
        });
    } else if (birth == "19") {
        $(".content1").show();
    }

})
</script>

</html>
